package com.ofek.eventos;

import java.util.ArrayList;

import android.database.DataSetObserver;
import android.widget.ListAdapter;

public abstract class ObservableListAdapter implements ListAdapter {
	private ArrayList<DataSetObserver> observers = new ArrayList<DataSetObserver>();
	
	@Override
	public void registerDataSetObserver(DataSetObserver observer) {
		if (observers.contains(observer)) return;
		observers.add(observer);
	}

	@Override
	public void unregisterDataSetObserver(DataSetObserver observer) {
		observers.remove(observer);
	}


}
